#ifndef STEREOVISION_H
#define STEREOVISION_H
#include<opencv2\highgui\highgui.hpp>
#include <QtGui/QMainWindow>
#include "ui_stereovision.h"
#include "camcapture.h"
#include "cameraThread.h"
class StereoVision : public QMainWindow ,public Ui_StereoVisionClass
{
	Q_OBJECT

public:
	StereoVision(QWidget *parent = 0, Qt::WFlags flags = 0);
	~StereoVision();
	void setCam(int i);
	QTimer * timer;
protected:
	void paintEvent(QPaintEvent * e);

private:
	cameraThread lCameraThread;
	cameraThread rCameraThread;
	cv::Mat frame;
	QImage *image;

	Ui::StereoVisionClass ui;
public slots:
	void openCam();
	void pauseCam();
	void stopCam();
};

#endif // STEREOVISION_H
